package com.example.light.web.personal.controller;

import com.example.light.web.personal.service.ThingService;
import com.example.light.web.system.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author bengang
 * @date 2018/9/1
 * @time 21:49
 * @description 待办事项通知
 */
@RequestMapping("thing")
@Controller
public class ThingController {
    @Autowired
    private ThingService thingService;

    @RequestMapping("toMsgList")
    public String toMsgList(Model model, User user){
        thingService.showMsgList(model,user);
        return "personal/msg_list";
    }

    @RequestMapping("toTimeEndPlan")
    public String toTimeEndPlan(Model model, User user){
        thingService.showPlan(model,user);
        return "personal/time_end_plan";
    }
}
